function shaizi(num=1){
  let ran_num = Math.round(Math.random()*6*num);
  if (ran_num === 0) {
    ran_num = 1;
  }
  console.log(ran_num);
}

shaizi();
shaizi(2);
